package org.liveboardgames.common.utils
{
    import org.liveboardgames.agricola.model.enums.ActionOutputEnum;
    import org.liveboardgames.agricola.model.enums.ResourceTypeEnum;
    
    public class Enums
    {
        public static function convertActionOutputToResource(outputType:String):String
        {
            var resourceType:String;
            if (outputType == ActionOutputEnum.CLAY)
            {
                resourceType = ResourceTypeEnum.CLAY;
            }
            else if (outputType == ActionOutputEnum.WOOD)
            {
                resourceType = ResourceTypeEnum.WOOD;
            }
            else if (outputType == ActionOutputEnum.STONE)
            {
                resourceType = ResourceTypeEnum.STONE;
            }
            else if (outputType == ActionOutputEnum.REED)
            {
                resourceType = ResourceTypeEnum.REED;
            }
            else if (outputType == ActionOutputEnum.SHEEP)
            {
                resourceType = ResourceTypeEnum.SHEEP;
            }
            else if (outputType == ActionOutputEnum.BOAR)
            {
                resourceType = ResourceTypeEnum.BOAR;
            }
            else if (outputType == ActionOutputEnum.CATTLE)
            {
                resourceType = ResourceTypeEnum.CATTLE;
            }
            else if (outputType == ActionOutputEnum.FOOD)
            {
                resourceType = ResourceTypeEnum.FOOD;
            }
            else if (outputType == ActionOutputEnum.GRAIN)
            {
                resourceType = ResourceTypeEnum.GRAIN;
            }
            else if (outputType == ActionOutputEnum.VEGETABLE)
            {
                resourceType = ResourceTypeEnum.VEGETABLE;
            }
            return resourceType;
        }
    
    }
}